<div class="modal-body wrapper-md padder-lg">
  <div class="row">
    <div class="col-sm-12">
      <div class="b-b">
        <h4 class=" m-t-none  m-b-xs">下载<a class="pull-right text-md pointer" ng-click="vm.close()"> <i
          class="fa fa-close"></i></a></h4>
      </div>
      <form name="form" role="form" class="form-horizontal m-t-lg col-sm-12">
        <div class="alert alert-danger" ng-show="vm.errorMsg">
          <a class="close" data-dismiss="alert" href="#">&times;</a>
          <strong>{{vm.errorMsg}}</strong>
        </div>

        <div class="form-group">
          <label class="col-lg-4 control-label">文件名：</label>
          <span class="col-lg-8">{{ ::vm.fileName}}</span>
        </div>
        <div class="m-t-md  col-sm-6 col-sm-offset-3" style="margin-left: 0;" >
          <a ng-href="{{ ::vm.url}}" download="{{ ::vm.fileName}}.csv"
             class="btn btn-success btn-block"
             ng-click="vm.download()" ng-disabled="form.$invalid"  data-loading-text="Loading...">
            确定
          </a>
        </div>
        <div class="m-t-md  col-sm-6 col-sm-offset-3" style="margin-left: 0;">
          <button type="submit" class="btn btn-danger btn-block"
                  ng-click="vm.close()" ng-disabled="form.$invalid"  data-loading-text="Loading...">取消
          </button>
        </div>
      </form>
    </div>
  </div>
</div>
